{block admin_content}
<h1>Soubory k projektům</h1>
<table width="100%">
	<thead>
		<tr><th>Projekt</th><th>Název</th><th>Umístění</th><th width="40"></th></tr>
	</thead>
	<tbody>
		{foreach $projectFiles as $file}
		<tr>
			<td>{$file->project[name]}</td>
			<td>{$file[name]}</td>
			<td>{$file[path]|shortPath}</td>
			<td><a n:href="editProjectFile, $file[id]"><img src="{$basePath}/images/edit.gif"></a> <a n:href="deleteProjectFile!, $file[id]" onclick="return del();"><img src="{$basePath}/images/delete.gif"></a></td>
		</tr>
		{/foreach}
	</tbody>
</table>
<h1>Soubory k úkolům</h1>
<table width="100%">
	<thead>
		<tr><th>Projekt</th><th>Úkol</th><th>Název</th><th>Umístění</th><th width="40"></th></tr>
	</thead>
	<tbody>
		{foreach $taskFiles as $file}
		<tr>
			<td>{$file->task->project[name]}</td>
			<td>{$file->task[name]}</td>
			<td>{$file[name]}</td>
			<td>{$file[path]|shortPath}</td>
			<td><a n:href="editTaskFile, $file[id]"><img src="{$basePath}/images/edit.gif"></a> <a n:href="deleteTaskFile!, $file[id]" onclick="return del();"><img src="{$basePath}/images/delete.gif"></a></td>
		</tr>
		{/foreach}
	</tbody>
</table>
{/block}